﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ODP.Com;

namespace ODP.Auth
{
    public class OAuthIntance
    {
        private OAuthBase m_OAuth;

        public OAuthBase OAuth
        {
            get { return m_OAuth; }
            set { m_OAuth = value; }
        }

        public OAuthIntance(OAuthBase oab)
        {
            switch (oab.twitterType)
            {
                case Enum.TwitterType.QQ :
                    OAuth = new QQAPI.QQOAuth(oab);
                    break;
                case Enum.TwitterType.Sina:
                    OAuth = new SinaAPI.SinaOAuth(oab);
                    break;

                    
            }
        }
    }
}
